package com.cqndt.disaster.device.domain;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class TbsDmqxjcyExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public TbsDmqxjcyExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andDevIdIsNull() {
            addCriterion("dev_id is null");
            return (Criteria) this;
        }

        public Criteria andDevIdIsNotNull() {
            addCriterion("dev_id is not null");
            return (Criteria) this;
        }

        public Criteria andDevIdEqualTo(String value) {
            addCriterion("dev_id =", value, "devId");
            return (Criteria) this;
        }

        public Criteria andDevIdNotEqualTo(String value) {
            addCriterion("dev_id <>", value, "devId");
            return (Criteria) this;
        }

        public Criteria andDevIdGreaterThan(String value) {
            addCriterion("dev_id >", value, "devId");
            return (Criteria) this;
        }

        public Criteria andDevIdGreaterThanOrEqualTo(String value) {
            addCriterion("dev_id >=", value, "devId");
            return (Criteria) this;
        }

        public Criteria andDevIdLessThan(String value) {
            addCriterion("dev_id <", value, "devId");
            return (Criteria) this;
        }

        public Criteria andDevIdLessThanOrEqualTo(String value) {
            addCriterion("dev_id <=", value, "devId");
            return (Criteria) this;
        }

        public Criteria andDevIdLike(String value) {
            addCriterion("dev_id like", value, "devId");
            return (Criteria) this;
        }

        public Criteria andDevIdNotLike(String value) {
            addCriterion("dev_id not like", value, "devId");
            return (Criteria) this;
        }

        public Criteria andDevIdIn(List<String> values) {
            addCriterion("dev_id in", values, "devId");
            return (Criteria) this;
        }

        public Criteria andDevIdNotIn(List<String> values) {
            addCriterion("dev_id not in", values, "devId");
            return (Criteria) this;
        }

        public Criteria andDevIdBetween(String value1, String value2) {
            addCriterion("dev_id between", value1, value2, "devId");
            return (Criteria) this;
        }

        public Criteria andDevIdNotBetween(String value1, String value2) {
            addCriterion("dev_id not between", value1, value2, "devId");
            return (Criteria) this;
        }

        public Criteria andDateIsNull() {
            addCriterion("date is null");
            return (Criteria) this;
        }

        public Criteria andDateIsNotNull() {
            addCriterion("date is not null");
            return (Criteria) this;
        }

        public Criteria andDateEqualTo(Date value) {
            addCriterion("date =", value, "date");
            return (Criteria) this;
        }

        public Criteria andDateNotEqualTo(Date value) {
            addCriterion("date <>", value, "date");
            return (Criteria) this;
        }

        public Criteria andDateGreaterThan(Date value) {
            addCriterion("date >", value, "date");
            return (Criteria) this;
        }

        public Criteria andDateGreaterThanOrEqualTo(Date value) {
            addCriterion("date >=", value, "date");
            return (Criteria) this;
        }

        public Criteria andDateLessThan(Date value) {
            addCriterion("date <", value, "date");
            return (Criteria) this;
        }

        public Criteria andDateLessThanOrEqualTo(Date value) {
            addCriterion("date <=", value, "date");
            return (Criteria) this;
        }

        public Criteria andDateIn(List<Date> values) {
            addCriterion("date in", values, "date");
            return (Criteria) this;
        }

        public Criteria andDateNotIn(List<Date> values) {
            addCriterion("date not in", values, "date");
            return (Criteria) this;
        }

        public Criteria andDateBetween(Date value1, Date value2) {
            addCriterion("date between", value1, value2, "date");
            return (Criteria) this;
        }

        public Criteria andDateNotBetween(Date value1, Date value2) {
            addCriterion("date not between", value1, value2, "date");
            return (Criteria) this;
        }

        public Criteria andNowXIsNull() {
            addCriterion("now_x is null");
            return (Criteria) this;
        }

        public Criteria andNowXIsNotNull() {
            addCriterion("now_x is not null");
            return (Criteria) this;
        }

        public Criteria andNowXEqualTo(String value) {
            addCriterion("now_x =", value, "nowX");
            return (Criteria) this;
        }

        public Criteria andNowXNotEqualTo(String value) {
            addCriterion("now_x <>", value, "nowX");
            return (Criteria) this;
        }

        public Criteria andNowXGreaterThan(String value) {
            addCriterion("now_x >", value, "nowX");
            return (Criteria) this;
        }

        public Criteria andNowXGreaterThanOrEqualTo(String value) {
            addCriterion("now_x >=", value, "nowX");
            return (Criteria) this;
        }

        public Criteria andNowXLessThan(String value) {
            addCriterion("now_x <", value, "nowX");
            return (Criteria) this;
        }

        public Criteria andNowXLessThanOrEqualTo(String value) {
            addCriterion("now_x <=", value, "nowX");
            return (Criteria) this;
        }

        public Criteria andNowXLike(String value) {
            addCriterion("now_x like", value, "nowX");
            return (Criteria) this;
        }

        public Criteria andNowXNotLike(String value) {
            addCriterion("now_x not like", value, "nowX");
            return (Criteria) this;
        }

        public Criteria andNowXIn(List<String> values) {
            addCriterion("now_x in", values, "nowX");
            return (Criteria) this;
        }

        public Criteria andNowXNotIn(List<String> values) {
            addCriterion("now_x not in", values, "nowX");
            return (Criteria) this;
        }

        public Criteria andNowXBetween(String value1, String value2) {
            addCriterion("now_x between", value1, value2, "nowX");
            return (Criteria) this;
        }

        public Criteria andNowXNotBetween(String value1, String value2) {
            addCriterion("now_x not between", value1, value2, "nowX");
            return (Criteria) this;
        }

        public Criteria andNowYIsNull() {
            addCriterion("now_y is null");
            return (Criteria) this;
        }

        public Criteria andNowYIsNotNull() {
            addCriterion("now_y is not null");
            return (Criteria) this;
        }

        public Criteria andNowYEqualTo(String value) {
            addCriterion("now_y =", value, "nowY");
            return (Criteria) this;
        }

        public Criteria andNowYNotEqualTo(String value) {
            addCriterion("now_y <>", value, "nowY");
            return (Criteria) this;
        }

        public Criteria andNowYGreaterThan(String value) {
            addCriterion("now_y >", value, "nowY");
            return (Criteria) this;
        }

        public Criteria andNowYGreaterThanOrEqualTo(String value) {
            addCriterion("now_y >=", value, "nowY");
            return (Criteria) this;
        }

        public Criteria andNowYLessThan(String value) {
            addCriterion("now_y <", value, "nowY");
            return (Criteria) this;
        }

        public Criteria andNowYLessThanOrEqualTo(String value) {
            addCriterion("now_y <=", value, "nowY");
            return (Criteria) this;
        }

        public Criteria andNowYLike(String value) {
            addCriterion("now_y like", value, "nowY");
            return (Criteria) this;
        }

        public Criteria andNowYNotLike(String value) {
            addCriterion("now_y not like", value, "nowY");
            return (Criteria) this;
        }

        public Criteria andNowYIn(List<String> values) {
            addCriterion("now_y in", values, "nowY");
            return (Criteria) this;
        }

        public Criteria andNowYNotIn(List<String> values) {
            addCriterion("now_y not in", values, "nowY");
            return (Criteria) this;
        }

        public Criteria andNowYBetween(String value1, String value2) {
            addCriterion("now_y between", value1, value2, "nowY");
            return (Criteria) this;
        }

        public Criteria andNowYNotBetween(String value1, String value2) {
            addCriterion("now_y not between", value1, value2, "nowY");
            return (Criteria) this;
        }

        public Criteria andNowZIsNull() {
            addCriterion("now_z is null");
            return (Criteria) this;
        }

        public Criteria andNowZIsNotNull() {
            addCriterion("now_z is not null");
            return (Criteria) this;
        }

        public Criteria andNowZEqualTo(String value) {
            addCriterion("now_z =", value, "nowZ");
            return (Criteria) this;
        }

        public Criteria andNowZNotEqualTo(String value) {
            addCriterion("now_z <>", value, "nowZ");
            return (Criteria) this;
        }

        public Criteria andNowZGreaterThan(String value) {
            addCriterion("now_z >", value, "nowZ");
            return (Criteria) this;
        }

        public Criteria andNowZGreaterThanOrEqualTo(String value) {
            addCriterion("now_z >=", value, "nowZ");
            return (Criteria) this;
        }

        public Criteria andNowZLessThan(String value) {
            addCriterion("now_z <", value, "nowZ");
            return (Criteria) this;
        }

        public Criteria andNowZLessThanOrEqualTo(String value) {
            addCriterion("now_z <=", value, "nowZ");
            return (Criteria) this;
        }

        public Criteria andNowZLike(String value) {
            addCriterion("now_z like", value, "nowZ");
            return (Criteria) this;
        }

        public Criteria andNowZNotLike(String value) {
            addCriterion("now_z not like", value, "nowZ");
            return (Criteria) this;
        }

        public Criteria andNowZIn(List<String> values) {
            addCriterion("now_z in", values, "nowZ");
            return (Criteria) this;
        }

        public Criteria andNowZNotIn(List<String> values) {
            addCriterion("now_z not in", values, "nowZ");
            return (Criteria) this;
        }

        public Criteria andNowZBetween(String value1, String value2) {
            addCriterion("now_z between", value1, value2, "nowZ");
            return (Criteria) this;
        }

        public Criteria andNowZNotBetween(String value1, String value2) {
            addCriterion("now_z not between", value1, value2, "nowZ");
            return (Criteria) this;
        }

        public Criteria andDirXIsNull() {
            addCriterion("dir_x is null");
            return (Criteria) this;
        }

        public Criteria andDirXIsNotNull() {
            addCriterion("dir_x is not null");
            return (Criteria) this;
        }

        public Criteria andDirXEqualTo(String value) {
            addCriterion("dir_x =", value, "dirX");
            return (Criteria) this;
        }

        public Criteria andDirXNotEqualTo(String value) {
            addCriterion("dir_x <>", value, "dirX");
            return (Criteria) this;
        }

        public Criteria andDirXGreaterThan(String value) {
            addCriterion("dir_x >", value, "dirX");
            return (Criteria) this;
        }

        public Criteria andDirXGreaterThanOrEqualTo(String value) {
            addCriterion("dir_x >=", value, "dirX");
            return (Criteria) this;
        }

        public Criteria andDirXLessThan(String value) {
            addCriterion("dir_x <", value, "dirX");
            return (Criteria) this;
        }

        public Criteria andDirXLessThanOrEqualTo(String value) {
            addCriterion("dir_x <=", value, "dirX");
            return (Criteria) this;
        }

        public Criteria andDirXLike(String value) {
            addCriterion("dir_x like", value, "dirX");
            return (Criteria) this;
        }

        public Criteria andDirXNotLike(String value) {
            addCriterion("dir_x not like", value, "dirX");
            return (Criteria) this;
        }

        public Criteria andDirXIn(List<String> values) {
            addCriterion("dir_x in", values, "dirX");
            return (Criteria) this;
        }

        public Criteria andDirXNotIn(List<String> values) {
            addCriterion("dir_x not in", values, "dirX");
            return (Criteria) this;
        }

        public Criteria andDirXBetween(String value1, String value2) {
            addCriterion("dir_x between", value1, value2, "dirX");
            return (Criteria) this;
        }

        public Criteria andDirXNotBetween(String value1, String value2) {
            addCriterion("dir_x not between", value1, value2, "dirX");
            return (Criteria) this;
        }

        public Criteria andDirYIsNull() {
            addCriterion("dir_y is null");
            return (Criteria) this;
        }

        public Criteria andDirYIsNotNull() {
            addCriterion("dir_y is not null");
            return (Criteria) this;
        }

        public Criteria andDirYEqualTo(String value) {
            addCriterion("dir_y =", value, "dirY");
            return (Criteria) this;
        }

        public Criteria andDirYNotEqualTo(String value) {
            addCriterion("dir_y <>", value, "dirY");
            return (Criteria) this;
        }

        public Criteria andDirYGreaterThan(String value) {
            addCriterion("dir_y >", value, "dirY");
            return (Criteria) this;
        }

        public Criteria andDirYGreaterThanOrEqualTo(String value) {
            addCriterion("dir_y >=", value, "dirY");
            return (Criteria) this;
        }

        public Criteria andDirYLessThan(String value) {
            addCriterion("dir_y <", value, "dirY");
            return (Criteria) this;
        }

        public Criteria andDirYLessThanOrEqualTo(String value) {
            addCriterion("dir_y <=", value, "dirY");
            return (Criteria) this;
        }

        public Criteria andDirYLike(String value) {
            addCriterion("dir_y like", value, "dirY");
            return (Criteria) this;
        }

        public Criteria andDirYNotLike(String value) {
            addCriterion("dir_y not like", value, "dirY");
            return (Criteria) this;
        }

        public Criteria andDirYIn(List<String> values) {
            addCriterion("dir_y in", values, "dirY");
            return (Criteria) this;
        }

        public Criteria andDirYNotIn(List<String> values) {
            addCriterion("dir_y not in", values, "dirY");
            return (Criteria) this;
        }

        public Criteria andDirYBetween(String value1, String value2) {
            addCriterion("dir_y between", value1, value2, "dirY");
            return (Criteria) this;
        }

        public Criteria andDirYNotBetween(String value1, String value2) {
            addCriterion("dir_y not between", value1, value2, "dirY");
            return (Criteria) this;
        }

        public Criteria andDirZIsNull() {
            addCriterion("dir_z is null");
            return (Criteria) this;
        }

        public Criteria andDirZIsNotNull() {
            addCriterion("dir_z is not null");
            return (Criteria) this;
        }

        public Criteria andDirZEqualTo(String value) {
            addCriterion("dir_z =", value, "dirZ");
            return (Criteria) this;
        }

        public Criteria andDirZNotEqualTo(String value) {
            addCriterion("dir_z <>", value, "dirZ");
            return (Criteria) this;
        }

        public Criteria andDirZGreaterThan(String value) {
            addCriterion("dir_z >", value, "dirZ");
            return (Criteria) this;
        }

        public Criteria andDirZGreaterThanOrEqualTo(String value) {
            addCriterion("dir_z >=", value, "dirZ");
            return (Criteria) this;
        }

        public Criteria andDirZLessThan(String value) {
            addCriterion("dir_z <", value, "dirZ");
            return (Criteria) this;
        }

        public Criteria andDirZLessThanOrEqualTo(String value) {
            addCriterion("dir_z <=", value, "dirZ");
            return (Criteria) this;
        }

        public Criteria andDirZLike(String value) {
            addCriterion("dir_z like", value, "dirZ");
            return (Criteria) this;
        }

        public Criteria andDirZNotLike(String value) {
            addCriterion("dir_z not like", value, "dirZ");
            return (Criteria) this;
        }

        public Criteria andDirZIn(List<String> values) {
            addCriterion("dir_z in", values, "dirZ");
            return (Criteria) this;
        }

        public Criteria andDirZNotIn(List<String> values) {
            addCriterion("dir_z not in", values, "dirZ");
            return (Criteria) this;
        }

        public Criteria andDirZBetween(String value1, String value2) {
            addCriterion("dir_z between", value1, value2, "dirZ");
            return (Criteria) this;
        }

        public Criteria andDirZNotBetween(String value1, String value2) {
            addCriterion("dir_z not between", value1, value2, "dirZ");
            return (Criteria) this;
        }

        public Criteria andTpIsNull() {
            addCriterion("tp is null");
            return (Criteria) this;
        }

        public Criteria andTpIsNotNull() {
            addCriterion("tp is not null");
            return (Criteria) this;
        }

        public Criteria andTpEqualTo(String value) {
            addCriterion("tp =", value, "tp");
            return (Criteria) this;
        }

        public Criteria andTpNotEqualTo(String value) {
            addCriterion("tp <>", value, "tp");
            return (Criteria) this;
        }

        public Criteria andTpGreaterThan(String value) {
            addCriterion("tp >", value, "tp");
            return (Criteria) this;
        }

        public Criteria andTpGreaterThanOrEqualTo(String value) {
            addCriterion("tp >=", value, "tp");
            return (Criteria) this;
        }

        public Criteria andTpLessThan(String value) {
            addCriterion("tp <", value, "tp");
            return (Criteria) this;
        }

        public Criteria andTpLessThanOrEqualTo(String value) {
            addCriterion("tp <=", value, "tp");
            return (Criteria) this;
        }

        public Criteria andTpLike(String value) {
            addCriterion("tp like", value, "tp");
            return (Criteria) this;
        }

        public Criteria andTpNotLike(String value) {
            addCriterion("tp not like", value, "tp");
            return (Criteria) this;
        }

        public Criteria andTpIn(List<String> values) {
            addCriterion("tp in", values, "tp");
            return (Criteria) this;
        }

        public Criteria andTpNotIn(List<String> values) {
            addCriterion("tp not in", values, "tp");
            return (Criteria) this;
        }

        public Criteria andTpBetween(String value1, String value2) {
            addCriterion("tp between", value1, value2, "tp");
            return (Criteria) this;
        }

        public Criteria andTpNotBetween(String value1, String value2) {
            addCriterion("tp not between", value1, value2, "tp");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}